﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AnimalFarm.Field_Building_manage;
using AnimalFarm.AuctionMarket_manage;
using AnimalFarm.Livestock_manage;
using AnimalFarm.Product_manage;

namespace AnimalFarm
{
    public partial class MainForm : Form
    {
        private int farmerID;

        public int FarmerID
        {
            get { return farmerID; }
            set { farmerID = value; }
        }

        public MainForm()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
        }

        private void addNewFieldTypeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewFieldType anft = new AddNewFieldType();
            anft.MdiParent = this;
            anft.Show();
        }

        private void addNewFieldToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewField anf = new AddNewField(this.farmerID);
            anf.MdiParent = this;
            anf.Show();
        }

        private void addNewHerdToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddTheHerd anh = new AddTheHerd();
            anh.MdiParent = this;
            anh.Show();
        }

        private void addNewBuildingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewBuilding anb = new AddNewBuilding();
            anb.MdiParent = this;
            anb.Show();
        }

        private void addNewLivestockToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddLivestock als = new AddLivestock();
            als.MdiParent = this;
            als.Show();
        }

        private void addHarvestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddBulkProductField abpf = new AddBulkProductField();
            abpf.MdiParent = this;
            abpf.Show();
        }

        private void addNewBulkProductToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddBulkProduct abp = new AddBulkProduct();
            abp.MdiParent = this;
            abp.Show();
        }

        private void addNewAuctionMarketToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddAuctionMarket aam = new AddAuctionMarket();
            aam.MdiParent = this;
            aam.Show();
        }
   }
}
